package com.tdcy.workflow.service;

import java.util.List;

import org.activiti.engine.identity.Group;
import org.activiti.engine.impl.persistence.entity.UserEntity;
import org.activiti.engine.impl.persistence.entity.UserEntityManager;
import org.springframework.stereotype.Service;

@Service
public class CustomUserEntityManager extends UserEntityManager {

	@Override
	public UserEntity findUserById(String userId) {
		UserEntity userEntity = new UserEntity();
		return userEntity;// 返回的是activiti的实体类
	}

	@Override
	public List<Group> findGroupsByUser(final String userCode) {
		if (userCode == null)
			return null;

		List<Group> gs = null;
		return gs;
	}
}